remove

open fun remove(@NonNull activity: @NonNull Activity): @Nullable Array<SparseIntArray>(source)

Stops recording metrics for activity and returns the collected metrics so far. Recording will continue if there are still other activities being tracked. Calling remove() does not reset the metrics array; you must call reset to clear the data.

Return

An array whose index refers to the type of metric stored in that item's SparseIntArray object, e.g., data for TOTAL_DURATION is stored in the [TOTAL_INDEX] item.

Parameters

activity

The Activity to stop tracking metrics for.

See also